home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 92 / CDMM92_1.ISO / SOF 2 SDK / sof2sdk-101.msi / _92D6AC311BB48EBA344BBABC89DA6AB0 / _88D2A8D5715B41D0B00E5BDBE05B4BEA < prev    next >
Encoding:
Text File  |  2002-04-25  |  23.1 KB  |  1,125 lines

  1. {
  2.     \\ Server Join \\
  3.  
  4.     menuDef 
  5.     {
  6.         name                "joinserver"
  7.         visible                0
  8.         fullscreen            0
  9.         rect                50 50 640 293
  10.         focusColor            .49 .56 .27 1
  11.         tooltipbackcolor    .49 .56 .27 1
  12.         tooltipforecolor    .12 .14 .08 1
  13.         tooltipfont            "hud"
  14.         tooltipscale        .43
  15.         tooltipdelay        500
  16.  
  17.         onOpen 
  18.         { 
  19.             uiScript UpdateFilter ;
  20.  
  21.             // Re-initialize all of the tab colors
  22.             setitemcolor columns_group backcolor 0 0 0 0 ; 
  23.             setitemcolor tabs_group backcolor 0 0 0 0;
  24.             setitemcolor tabs_group forecolor .12 .14 .08 1;
  25.         }
  26.  
  27.         onClose
  28.         {
  29.             uiScript stopRefresh ;
  30.         }
  31.  
  32.         ////////////////////////////////////////////////////////////////////////
  33.         //    COLUMNS
  34.         ////////////////////////////////////////////////////////////////////////
  35.  
  36.         itemDef 
  37.         {
  38.             name needpass_column
  39.             group columns_group
  40.             rect 5 89 23 170
  41.             style WINDOW_STYLE_FILLED
  42.             backcolor 0 0 0 0
  43.             visible 1
  44.             decoration
  45.         }
  46.  
  47.         itemDef 
  48.         {
  49.             name servername_column
  50.             group columns_group
  51.             rect 27 89 219 170
  52.             style WINDOW_STYLE_FILLED
  53.             backcolor 0 0 0 0
  54.             visible 1
  55.             decoration
  56.         }
  57.  
  58.         itemDef 
  59.         {
  60.             name mapname_column
  61.             group columns_group
  62.             rect 245 89 121 170
  63.             style WINDOW_STYLE_FILLED
  64.             backcolor 0 0 0 0
  65.             visible 1
  66.             decoration
  67.         }
  68.  
  69.         itemDef 
  70.         {
  71.             name players_column
  72.             group columns_group
  73.             rect 365 89 66 170
  74.             style WINDOW_STYLE_FILLED
  75.             backcolor 0 0 0 0
  76.             visible 1
  77.             decoration        
  78.         }
  79.  
  80.         itemDef 
  81.         {
  82.             name type_column
  83.             group columns_group
  84.             rect 430 89 51 170
  85.             style WINDOW_STYLE_FILLED
  86.             backcolor 0 0 0 0
  87.             visible 1
  88.             decoration
  89.         }
  90.  
  91.         itemDef 
  92.         {
  93.             name ping_column
  94.             group columns_group
  95.             rect 480 89 59 170
  96.             style WINDOW_STYLE_FILLED
  97.             backcolor 0 0 0 0
  98.             visible 1
  99.             decoration
  100.         }
  101.  
  102.         ////////////////////////////////////////////////////////////////////////
  103.         //    Server list
  104.         ////////////////////////////////////////////////////////////////////////
  105.  
  106.         itemDef
  107.         {
  108.             name            serverlist
  109.             rect            5 89 533 170
  110.             type            ITEM_TYPE_LISTBOX
  111.             style            WINDOW_STYLE_EMPTY
  112.             elementwidth    120
  113.             elementheight    15
  114.             textfont        "hud"
  115.             textscale        .43
  116.             textaligny        -13
  117.             elementtype        LISTBOX_TEXT
  118.             feeder            FEEDER_SERVERS
  119.             border            1
  120.             forecolor        1 1 1 1
  121.             bordercolor        0 0 0 1
  122.             outlinecolor    .12 .14 .08 1
  123.             visible            1
  124.             columns            6 0 3 20 20 40 30 240 40 16 360 5 10 425 20 10 475 20 20
  125.  
  126.             doubleClick 
  127.             { 
  128.                 uiScript JoinServer 
  129.             }
  130.         }
  131.  
  132.         itemDef
  133.         {
  134.             name        window
  135.               rect        14 9 46 46
  136.             visible        1
  137.             border        1
  138.             bordercolor    0 0 0 1
  139.             decoration
  140.         }
  141.  
  142.         itemDef
  143.         {
  144.             name        getnewlist_image
  145.               style        WINDOW_STYLE_SHADER
  146.             background    "gfx/menus/icons/submenu_get_list"
  147.             backcolor    0 0 0 0
  148.             forecolor    .12 .14 .08 1
  149.               rect        22 17 32 32
  150.             visible        1
  151.             decoration
  152.         }
  153.  
  154.         itemDef
  155.         {
  156.             name        getnewlist_image_alt
  157.               style        WINDOW_STYLE_SHADER
  158.             background    "gfx/menus/icons/submenu_get_list_alt"
  159.             backcolor    0 0 0 0
  160.             forecolor    .12 .14 .08 1
  161.               rect        22 17 32 32
  162.             visible        0
  163.             decoration
  164.         }
  165.  
  166.         itemDef 
  167.         {
  168.               name        getnewlist_button
  169.             type        ITEM_TYPE_BUTTON
  170.             style        WINDOW_STYLE_EMPTY
  171.               rect        14 9 46 46
  172.               visible        1
  173.             tooltip        "Get New List"
  174.  
  175.             mouseEnter
  176.             {
  177.                 play "sound/misc/menus/hilite1.wav" ; 
  178.                 show getnewlist_image_alt;
  179.                 hide getnewlist_image;
  180.             }
  181.             mouseExit
  182.             {
  183.                 show getnewlist_image;
  184.                 hide getnewlist_image_alt;
  185.             }
  186.             action 
  187.             { 
  188.                 play "sound/misc/menus/select.wav" ; 
  189.                 uiScript RefreshServers
  190.             }            
  191.         }
  192.  
  193.         itemDef
  194.         {
  195.             name        window
  196.               rect        69 9 46 46
  197.             visible        1
  198.             border        1
  199.             bordercolor    0 0 0 1
  200.             decoration
  201.         }
  202.  
  203.         itemDef
  204.         {
  205.             name        refreshlist_image
  206.               style        WINDOW_STYLE_SHADER
  207.             background    "gfx/menus/icons/submenu_refresh"
  208.             backcolor    0 0 0 0
  209.             forecolor    .12 .14 .08 1
  210.               rect        76 17 32 32
  211.             visible        1
  212.             decoration
  213.         }
  214.  
  215.         itemDef
  216.         {
  217.             name        refreshlist_image_alt
  218.               style        WINDOW_STYLE_SHADER
  219.             background    "gfx/menus/icons/submenu_refresh_alt"
  220.             backcolor    0 0 0 0
  221.             forecolor    .12 .14 .08 1
  222.               rect        76 17 32 32
  223.             visible        0
  224.             decoration
  225.         }
  226.  
  227.         itemDef 
  228.         {
  229.               name        refreshlist_button
  230.             style        WINDOW_STYLE_EMPTY
  231.             type        ITEM_TYPE_BUTTON
  232.               rect        69 9 46 46
  233.               visible        1 
  234.             tooltip        "Refresh List"
  235.  
  236.             mouseEnter
  237.             {
  238.                 play "sound/misc/menus/hilite1.wav" ; 
  239.                 show refreshlist_image_alt;
  240.                 hide refreshlist_image;
  241.             }
  242.             mouseExit
  243.             {
  244.                 show refreshlist_image;
  245.                 hide refreshlist_image_alt;
  246.             }
  247.             action 
  248.             { 
  249.                 play "sound/misc/menus/select.wav" ; 
  250.                 uiScript RefreshFilter
  251.             }
  252.         }
  253.  
  254.         itemDef 
  255.         {
  256.               name        netsource_filter
  257.               style        WINDOW_STYLE_FILLED
  258.              ownerdraw    UI_NETSOURCE
  259.             rect        144 9 134 16 
  260.             textstyle    0
  261.               textalign    ITEM_ALIGN_LEFT        
  262.             textaligny    0
  263.             textalignx    1
  264.             textfont    "hud"
  265.             textscale    .43
  266.             forecolor    .12 .14 .08 1
  267.             backcolor    0 0 0 0
  268.              visible        1 
  269.             
  270.             action 
  271.             { 
  272.                 play "sound/misc/menus/select.wav" ; 
  273.             }
  274.             mouseEnter
  275.             {
  276.                 play "sound/misc/menus/hilite1.wav" ; 
  277.                 setitemcolor netsource_filter backcolor .12 .14 .08 1
  278.                 setitemcolor netsource_filter forecolor .49 .56 .27 1
  279.             }
  280.  
  281.             mouseExit
  282.             {
  283.                 setitemcolor netsource_filter forecolor .12 .14 .08 1
  284.                 setitemcolor netsource_filter backcolor 0 0 0 0
  285.             }
  286.         }
  287.  
  288.         itemDef 
  289.         {
  290.             name        gametype_filter
  291.             style        WINDOW_STYLE_FILLED
  292.             text        "Type:"
  293.             ownerdraw    UI_JOINGAMETYPE
  294.             rect        144 24 184 16 
  295.             textstyle    0
  296.             textalign    ITEM_ALIGN_LEFT        
  297.             textaligny    0
  298.             textalignx    1
  299.             textfont        "hud"
  300.             textscale        .43
  301.             forecolor    .12 .14 .08 1
  302.             backcolor    0 0 0 0
  303.               visible        1 
  304.             
  305.             action 
  306.             { 
  307.                 play "sound/misc/menus/select.wav" ; 
  308.             }
  309.             mouseEnter
  310.             {
  311.                 play "sound/misc/menus/hilite1.wav" ; 
  312.                 setitemcolor gametype_filter backcolor .12 .14 .08 1
  313.                 setitemcolor gametype_filter forecolor .49 .56 .27 1
  314.             }
  315.  
  316.             mouseExit
  317.             {
  318.                 setitemcolor gametype_filter forecolor .12 .14 .08 1
  319.                 setitemcolor gametype_filter backcolor 0 0 0 0
  320.             }
  321.         }
  322.  
  323.         itemDef 
  324.         {
  325.               name        empty_filter
  326.             style        WINDOW_STYLE_FILLED
  327.             type        ITEM_TYPE_YESNO
  328.               text        "Empty:"
  329.             cvar        "ui_browserShowEmpty"
  330.             textfont        "hud"
  331.             textscale        .43
  332.             rect        144 40 80 16 
  333.             textstyle    0
  334.             textalign    ITEM_ALIGN_LEFT        
  335.             textaligny    0
  336.             textalignx    1
  337.             forecolor    .12 .14 .08 1
  338.             backcolor    0 0 0 0
  339.               visible        1 
  340.             
  341.             action 
  342.             { 
  343.                 play "sound/misc/menus/select.wav" ; 
  344.                 uiScript RefreshFilter 
  345.             }
  346.             mouseEnter
  347.             {
  348.                 play "sound/misc/menus/hilite1.wav" ; 
  349.                 setitemcolor empty_filter backcolor .12 .14 .08 1
  350.                 setitemcolor empty_filter forecolor .49 .56 .27 1
  351.             }
  352.  
  353.             mouseExit
  354.             {
  355.                 setitemcolor empty_filter forecolor .12 .14 .08 1
  356.                 setitemcolor empty_filter backcolor 0 0 0 0
  357.             }
  358.         }
  359.  
  360.         itemDef 
  361.         {
  362.               name        full_filter
  363.             style        WINDOW_STYLE_FILLED
  364.             type        ITEM_TYPE_YESNO
  365.               text        "Full:"
  366.             cvar        "ui_browserShowFull"
  367.             textfont        "hud"
  368.             textscale        .43
  369.             rect        244 40 80 16 
  370.             textstyle    0
  371.             textalign    ITEM_ALIGN_LEFT        
  372.             textaligny    0
  373.             textalignx    1
  374.             forecolor    .12 .14 .08 1
  375.             backcolor    0 0 0 0
  376.               visible        1 
  377.             
  378.             action 
  379.             { 
  380.                 play "sound/misc/menus/select.wav" ; 
  381.                 uiScript RefreshFilter ; 
  382.             }
  383.             mouseEnter
  384.             {
  385.                 play "sound/misc/menus/hilite1.wav" ; 
  386.                 setitemcolor full_filter backcolor .12 .14 .08 1
  387.                 setitemcolor full_filter forecolor .49 .56 .27 1
  388.             }
  389.  
  390.             mouseExit
  391.             {
  392.                 setitemcolor full_filter forecolor .12 .14 .08 1
  393.                 setitemcolor full_filter backcolor 0 0 0 0
  394.             }
  395.         }
  396.  
  397.         itemDef
  398.         {
  399.             name        window
  400.              rect        490 9 46 46 
  401.             visible        1
  402.             border        1
  403.             bordercolor    0 0 0 1
  404.             decoration
  405.         }
  406.  
  407.         itemDef
  408.         {
  409.             name        join_image
  410.               style        WINDOW_STYLE_SHADER
  411.             background    "gfx/menus/icons/submenu_join"
  412.             backcolor    0 0 0 0
  413.             forecolor    .12 .14 .08 1
  414.              rect        498 17 32 32 
  415.             visible        1
  416.             decoration
  417.         }
  418.  
  419.         itemDef
  420.         {
  421.             name        join_image_alt
  422.               style        WINDOW_STYLE_SHADER
  423.             background    "gfx/menus/icons/submenu_join_alt"
  424.             backcolor    0 0 0 0
  425.             forecolor    .12 .14 .08 1
  426.              rect        498 17 32 32 
  427.             visible        0
  428.             decoration
  429.         }
  430.  
  431.         itemDef 
  432.         {
  433.               name        join_button
  434.               style        WINDOW_STYLE_EMPTY
  435.              rect        490 9 46 46 
  436.             type        ITEM_TYPE_BUTTON
  437.               visible        1
  438.             tooltip        "Join Game"
  439.  
  440.             mouseEnter
  441.             {
  442.                 play "sound/misc/menus/hilite1.wav" ; 
  443.                 show join_image_alt;
  444.                 hide join_image;
  445.             }
  446.  
  447.             mouseExit
  448.             {
  449.                 show join_image;
  450.                 hide join_image_alt;
  451.             }
  452.               
  453.             action 
  454.             { 
  455.                 uiScript JoinServer 
  456.             }
  457.         }
  458.  
  459.         itemDef
  460.         {
  461.             name        divider
  462.             rect        8 60 535 3
  463.             style        WINDOW_STYLE_FILLED
  464.             backcolor    0 0 0 1
  465.             visible        1
  466.             decoration
  467.         }
  468.  
  469.         ////////////////////////////////////////////////////////////////////////
  470.         //    Tabs
  471.         ////////////////////////////////////////////////////////////////////////
  472.  
  473.         itemDef 
  474.         {
  475.               name        needpass_tab
  476.             group        tabs_group
  477.             style        WINDOW_STYLE_FILLED
  478.               rect        5 72 20 18
  479.             textalign    0
  480.               textalignx    3
  481.               textaligny    0
  482.             forecolor    .12 .14 .08 1
  483.             bordercolor    0 0 0 1
  484.             backcolor    0 0 0 0
  485.               visible        1 
  486.             border        1
  487.         }
  488.  
  489.         itemDef 
  490.         {
  491.               name        needpass_tab
  492.             group        tabs_group
  493.             style        WINDOW_STYLE_SHADER
  494.             background    "gfx/menus/icons/icon_lock"
  495.               rect        5 72 20 18
  496.             textalign    0
  497.               textalignx    3
  498.               textaligny    0
  499.             forecolor    .12 .14 .08 1
  500.             bordercolor    0 0 0 1
  501.             backcolor    0 0 0 0
  502.               visible        1 
  503.             border        1
  504.         }
  505.  
  506.         itemDef 
  507.         {
  508.               name        needpass_tab_button
  509.             type        ITEM_TYPE_BUTTON
  510.             style        WINDOW_STYLE_EMPTY
  511.               rect        5 72 20 18
  512.               visible        1 
  513.  
  514.             mouseEnter
  515.             {
  516.                 play "sound/misc/menus/hilite1.wav" ; 
  517.                 setitemcolor needpass_tab backcolor .12 .14 .08 1
  518.                 setitemcolor needpass_tab forecolor .49 .56 .27 1
  519.             }
  520.  
  521.             mouseExit
  522.             {
  523.                 setitemcolor needpass_tab forecolor .12 .14 .08 1
  524.                 setitemcolor needpass_tab backcolor 0 0 0 0
  525.             }
  526.  
  527.             action 
  528.             { 
  529.                 play "sound/misc/menus/select.wav" ; 
  530.  
  531.                 uiScript ServerSort 0 ; 
  532.                 setitemcolor tabs_group backcolor 0 0 0 0;
  533.                 setitemcolor tabs_group forecolor .12 .14 .08 1;
  534.                 setitemcolor needpass_tab backcolor .12 .14 .08 1
  535.                 setitemcolor needpass_tab forecolor .49 .56 .27 1
  536.                 setitemcolor columns_group backcolor 0 0 0 0 ; 
  537.                 setitemcolor needpass_column backcolor .12 .14 .08 .35;
  538.             }
  539.         }
  540.  
  541.         itemDef 
  542.         {
  543.               name        servername_tab
  544.             group        tabs_group
  545.               text        "Server Name"
  546.             style        WINDOW_STYLE_FILLED
  547.             textfont        "hud"
  548.             textscale        .43
  549.               rect        27 72 95 18
  550.             textalign    0
  551.               textalignx    3
  552.               textaligny    0
  553.             forecolor    .12 .14 .08 1
  554.             bordercolor    0 0 0 1
  555.             backcolor    0 0 0 0
  556.               visible        1 
  557.             border        1
  558.         }
  559.  
  560.         itemDef 
  561.         {
  562.               name        servername_tab_button
  563.             type        ITEM_TYPE_BUTTON
  564.             style        WINDOW_STYLE_EMPTY
  565.               rect        27 72 95 18
  566.               visible        1 
  567.  
  568.             mouseEnter
  569.             {
  570.                 play "sound/misc/menus/hilite1.wav" ; 
  571.                 setitemcolor servername_tab backcolor .12 .14 .08 1
  572.                 setitemcolor servername_tab forecolor .49 .56 .27 1
  573.             }
  574.  
  575.             mouseExit
  576.             {
  577.                 setitemcolor servername_tab forecolor .12 .14 .08 1
  578.                 setitemcolor servername_tab backcolor 0 0 0 0
  579.             }
  580.  
  581.             action 
  582.             { 
  583.                 play "sound/misc/menus/select.wav" ; 
  584.  
  585.                 uiScript ServerSort 1 ; 
  586.                 setitemcolor tabs_group backcolor 0 0 0 0;
  587.                 setitemcolor tabs_group forecolor .12 .14 .08 1;
  588.                 setitemcolor servername_tab backcolor .12 .14 .08 1
  589.                 setitemcolor servername_tab forecolor .49 .56 .27 1
  590.                 setitemcolor columns_group backcolor 0 0 0 0 ; 
  591.                 setitemcolor servername_column backcolor .12 .14 .08 .35;
  592.             }
  593.         }
  594.  
  595.         itemDef 
  596.         {   
  597.               name        mapname_tab
  598.             group        tabs_group
  599.               text        "Map Name"
  600.             style        WINDOW_STYLE_FILLED
  601.             textfont        "hud"
  602.             textscale        .43
  603.               rect        245 72 80 18
  604.             textalign    0
  605.               textalignx    5        // center
  606.             textaligny    0
  607.             forecolor    .12 .14 .08 1
  608.             backcolor    0 0 0 0
  609.             bordercolor    0 0 0 1
  610.               visible        1 
  611.             border        1
  612.         }
  613.  
  614.         itemDef 
  615.         {   
  616.               name        mapname_tab_button
  617.             type        ITEM_TYPE_BUTTON
  618.             style        WINDOW_STYLE_EMPTY
  619.               rect        245 72 80 18
  620.               visible        1 
  621.  
  622.             mouseEnter
  623.             {
  624.                 play "sound/misc/menus/hilite1.wav" ; 
  625.                 setitemcolor mapname_tab backcolor .12 .14 .08 1
  626.                 setitemcolor mapname_tab forecolor .49 .56 .27 1
  627.             }
  628.  
  629.             mouseExit
  630.             {
  631.                 setitemcolor mapname_tab forecolor .12 .14 .08 1
  632.                 setitemcolor mapname_tab backcolor 0 0 0 0
  633.             }
  634.  
  635.             action 
  636.             { 
  637.                 play "sound/misc/menus/select.wav" ; 
  638.  
  639.                 uiScript ServerSort 2 ; 
  640.                 setitemcolor tabs_group backcolor 0 0 0 0;
  641.                 setitemcolor tabs_group forecolor .12 .14 .08 1;
  642.                 setitemcolor mapname_tab backcolor .12 .14 .08 1
  643.                 setitemcolor mapname_tab forecolor .49 .56 .27 1
  644.                 setitemcolor columns_group backcolor 0 0 0 0 ; 
  645.                 setitemcolor mapname_column backcolor .12 .14 .08 .35;
  646.             }
  647.         }
  648.  
  649.         itemDef 
  650.         {
  651.               name        players_tab
  652.             group        tabs_group
  653.               text        "#Plyrs"
  654.             style        WINDOW_STYLE_FILLED
  655.             textfont        "hud"
  656.             textscale        .43
  657.               rect        365 72 53 18
  658.             textalign    0
  659.               textalignx    2        // center
  660.             textaligny    0
  661.             forecolor    .12 .14 .08 1
  662.             backcolor    0 0 0 0
  663.             bordercolor    0 0 0 1
  664.               visible        1 
  665.             border        1
  666.         }
  667.  
  668.         itemDef 
  669.         {
  670.               name        players_tab_button
  671.             type        ITEM_TYPE_BUTTON
  672.             style        WINDOW_STYLE_EMPTY
  673.               rect        365 72 53 18
  674.               visible        1 
  675.  
  676.             mouseEnter
  677.             {
  678.                 play "sound/misc/menus/hilite1.wav" ; 
  679.                 setitemcolor players_tab backcolor .12 .14 .08 1
  680.                 setitemcolor players_tab forecolor .49 .56 .27 1
  681.             }
  682.  
  683.             mouseExit
  684.             {
  685.                 setitemcolor players_tab forecolor .12 .14 .08 1
  686.                 setitemcolor players_tab backcolor 0 0 0 0
  687.             }
  688.  
  689.             action 
  690.             { 
  691.                 play "sound/misc/menus/select.wav" ; 
  692.  
  693.                 uiScript ServerSort 3 ; 
  694.                 setitemcolor tabs_group backcolor 0 0 0 0;
  695.                 setitemcolor tabs_group forecolor .12 .14 .08 1;
  696.                 setitemcolor players_tab backcolor .12 .14 .08 1
  697.                 setitemcolor players_tab forecolor .49 .56 .27 1
  698.                 setitemcolor columns_group backcolor 0 0 0 0 ; 
  699.                 setitemcolor players_column backcolor .12 .14 .08 .35;
  700.             }
  701.         }
  702.  
  703.         itemDef 
  704.         {
  705.               name        type_tab
  706.             group        tabs_group
  707.               text        "Type"
  708.             style        WINDOW_STYLE_FILLED
  709.             textfont        "hud"
  710.             textscale        .43
  711.               rect        430 72 39 18
  712.             textalign    0
  713.               textalignx    2        // center
  714.             textaligny    0
  715.             forecolor    .12 .14 .08 1
  716.             backcolor    0 0 0 0
  717.             bordercolor    0 0 0 1
  718.               visible        1 
  719.             border        1
  720.         }
  721.  
  722.         itemDef 
  723.         {
  724.               name        type_tab_button
  725.             type        ITEM_TYPE_BUTTON
  726.             style        WINDOW_STYLE_EMPTY
  727.               rect        430 72 39 18
  728.               visible        1 
  729.  
  730.             mouseEnter
  731.             {
  732.                 play "sound/misc/menus/hilite1.wav" ; 
  733.                 setitemcolor type_tab backcolor .12 .14 .08 1
  734.                 setitemcolor type_tab forecolor .49 .56 .27 1
  735.             }
  736.  
  737.             mouseExit
  738.             {
  739.                 setitemcolor type_tab forecolor .12 .14 .08 1
  740.                 setitemcolor type_tab backcolor 0 0 0 0
  741.             }
  742.  
  743.             action 
  744.             { 
  745.                 play "sound/misc/menus/select.wav" ; 
  746.  
  747.                 uiScript ServerSort 4 ; 
  748.                 setitemcolor tabs_group backcolor 0 0 0 0;
  749.                 setitemcolor tabs_group forecolor .12 .14 .08 1;
  750.                 setitemcolor type_tab backcolor .12 .14 .08 1
  751.                 setitemcolor type_tab forecolor .49 .56 .27 1
  752.                 setitemcolor columns_group backcolor 0 0 0 0 ; 
  753.                 setitemcolor type_column backcolor .12 .14 .08 .35;
  754.             }
  755.         }
  756.  
  757.         itemDef 
  758.         {
  759.               name        ping_tab
  760.             group        tabs_group
  761.               text        "Ping"
  762.             style        WINDOW_STYLE_FILLED
  763.             textfont        "hud"
  764.             textscale        .43
  765.               rect        480 72 39 18
  766.             textalign    0
  767.               textalignx    2        // center
  768.             textaligny    0
  769.             forecolor    .12 .14 .08 1
  770.             backcolor    0 0 0 0
  771.             bordercolor    0 0 0 1
  772.               visible        1 
  773.             border        1
  774.         }
  775.  
  776.         itemDef 
  777.         {
  778.               name        ping_tab_button
  779.             type        ITEM_TYPE_BUTTON
  780.             style        WINDOW_STYLE_EMPTY
  781.               rect        480 72 39 18
  782.               visible        1 
  783.  
  784.             mouseEnter
  785.             {
  786.                 play "sound/misc/menus/hilite1.wav" ; 
  787.                 setitemcolor ping_tab backcolor .12 .14 .08 1
  788.                 setitemcolor ping_tab forecolor .49 .56 .27 1
  789.             }
  790.  
  791.             mouseExit
  792.             {
  793.                 setitemcolor ping_tab forecolor .12 .14 .08 1
  794.                 setitemcolor ping_tab backcolor 0 0 0 0
  795.             }
  796.  
  797.             action 
  798.             { 
  799.                 play "sound/misc/menus/select.wav" ; 
  800.  
  801.                 uiScript ServerSort 5 ; 
  802.                 setitemcolor tabs_group backcolor 0 0 0 0;
  803.                 setitemcolor tabs_group forecolor .12 .14 .08 1;
  804.                 setitemcolor ping_tab backcolor .12 .14 .08 1
  805.                 setitemcolor ping_tab forecolor .49 .56 .27 1
  806.                 setitemcolor columns_group backcolor 0 0 0 0 ; 
  807.                 setitemcolor ping_column backcolor .12 .14 .08 .35;
  808.             }
  809.         }
  810.  
  811.         ////////////////////////////////////////////////////////////////////////
  812.         //    COLUMN BORDERS
  813.         ////////////////////////////////////////////////////////////////////////
  814.  
  815.         itemDef 
  816.         {
  817.             name column_border
  818.             rect 5 89 23 171
  819.             style WINDOW_STYLE_EMPTY
  820.             border 1
  821.             bordersize 1
  822.             bordercolor 0 0 0 .8
  823.             visible 1
  824.             decoration
  825.         }
  826.  
  827.         itemDef 
  828.         {
  829.             name column_border
  830.             rect 27 89 219 171
  831.             style WINDOW_STYLE_EMPTY
  832.             border 1
  833.             bordersize 1
  834.             bordercolor 0 0 0 .8
  835.             visible 1
  836.             decoration
  837.         }
  838.  
  839.         itemDef 
  840.         {
  841.             name column_border
  842.             rect 245 89 121 171
  843.             style WINDOW_STYLE_EMPTY
  844.             border 1
  845.             bordersize 1
  846.             bordercolor 0 0 0 .8
  847.             visible 1
  848.             decoration
  849.         }
  850.  
  851.         itemDef 
  852.         {
  853.             name column_border
  854.             rect 365 89 66 171
  855.             style WINDOW_STYLE_EMPTY
  856.             border 1
  857.             bordersize 1
  858.             bordercolor 0 0 0 .8
  859.             visible 1
  860.             decoration        
  861.         }
  862.  
  863.         itemDef 
  864.         {
  865.             name column_border
  866.             rect 430 89 51 171
  867.             style WINDOW_STYLE_EMPTY
  868.             border 1
  869.             bordersize 1
  870.             bordercolor 0 0 0 .8
  871.             visible 1
  872.             decoration
  873.         }
  874.  
  875.         itemDef 
  876.         {
  877.             name column_border
  878.             rect 480 89 59 171
  879.             style WINDOW_STYLE_EMPTY
  880.             border 1
  881.             bordersize 1
  882.             bordercolor 0 0 0 .8
  883.             visible 1
  884.             decoration
  885.         }
  886.  
  887.         ////////////////////////////////////////////////////////////////////////
  888.         //    BUTTONS BELOW LIST
  889.         ////////////////////////////////////////////////////////////////////////
  890.  
  891.         itemDef 
  892.         {
  893.               name        password_button
  894.               text        "Password"
  895.             type        ITEM_TYPE_BUTTON
  896.             style        WINDOW_STYLE_FILLED
  897.               rect        5 265 76 20
  898.             textfont        "hud"
  899.             textscale        .43
  900.             textalign    0
  901.               textalignx    5
  902.               textaligny    -8
  903.             forecolor    .12 .14 .08 1
  904.             backcolor    0 0 0 0
  905.               visible        0
  906.             border        1
  907.             bordercolor    0 0 0 1
  908.  
  909.               action 
  910.             {
  911.                 play "sound/misc/menus/select.wav" ; 
  912.  
  913.                 open password_popmenu 
  914.             }
  915.             mouseEnter 
  916.             { 
  917.                 play "sound/misc/menus/hilite1.wav" ; 
  918.                 setitemcolor password_button backcolor .12 .14 .08 1
  919.                 setitemcolor password_button forecolor .49 .56 .27 1
  920.             }
  921.               mouseExit 
  922.             { 
  923.                 setitemcolor password_button forecolor .12 .14 .08 1
  924.                 setitemcolor password_button backcolor 0 0 0 0
  925.             }
  926.         }
  927.  
  928.         itemDef 
  929.         {
  930.               name        newfavorite_button
  931.               text        "New Favorite"
  932.             type        ITEM_TYPE_BUTTON
  933.             style        WINDOW_STYLE_FILLED
  934.               rect        5 265 100 20
  935.             textfont        "hud"
  936.             textscale        .43
  937.             textalign    0
  938.               textalignx    10
  939.             textaligny    2
  940.             forecolor    .12 .14 .08 1
  941.             backcolor    0 0 0 0
  942.               visible        1 
  943.             border        1
  944.             bordercolor    0 0 0 1
  945.  
  946.               action 
  947.             {
  948.                 play "sound/misc/menus/select.wav" ; 
  949.  
  950.                 open createfavorite_popmenu ;
  951.             }
  952.             mouseEnter 
  953.             { 
  954.                 play "sound/misc/menus/hilite1.wav" ; 
  955.                 setitemcolor newfavorite_button backcolor .12 .14 .08 1
  956.                 setitemcolor newfavorite_button forecolor .49 .56 .27 1
  957.             }
  958.               mouseExit 
  959.             { 
  960.                 setitemcolor newfavorite_button forecolor .12 .14 .08 1
  961.                 setitemcolor newfavorite_button backcolor 0 0 0 0
  962.             }
  963.         }
  964.  
  965.         itemDef 
  966.         {
  967.               name        addfavorite_button
  968.               text        "Add Favorite"
  969.             type        ITEM_TYPE_BUTTON
  970.             style        WINDOW_STYLE_FILLED
  971.               rect        123 265 100 20
  972.             textfont        "hud"
  973.             textscale        .43
  974.             textalign    0
  975.               textalignx    11
  976.             textaligny    2
  977.             forecolor    .12 .14 .08 1
  978.             backcolor    0 0 0 0
  979.               visible        1 
  980.             border        1
  981.             bordercolor    0 0 0 1
  982.             cvarTest    "ui_netSource"
  983.             hideCvar 
  984.             { 
  985.                 "2"
  986.             }     
  987.  
  988.  
  989.               action 
  990.             {
  991.                 play "sound/misc/menus/select.wav" ; 
  992.  
  993.                 uiScript addFavorite
  994.             }
  995.             mouseEnter 
  996.             { 
  997.                 play "sound/misc/menus/hilite1.wav" ; 
  998.                 setitemcolor addfavorite_button backcolor .12 .14 .08 1
  999.                 setitemcolor addfavorite_button forecolor .49 .56 .27 1
  1000.             }
  1001.               mouseExit 
  1002.             { 
  1003.                 setitemcolor addfavorite_button forecolor .12 .14 .08 1
  1004.                 setitemcolor addfavorite_button backcolor 0 0 0 0
  1005.             }
  1006.         }
  1007.  
  1008.         itemDef 
  1009.         {
  1010.               name        delfavorite_button
  1011.               text        "Del Favorite"
  1012.             type        ITEM_TYPE_BUTTON
  1013.             style        WINDOW_STYLE_FILLED
  1014.               rect        123 265 100 20
  1015.             textfont        "hud"
  1016.             textscale        .43
  1017.             textalign    0
  1018.               textalignx    12
  1019.             textaligny    2
  1020.             forecolor    .12 .14 .08 1
  1021.             backcolor    0 0 0 0
  1022.               visible        1 
  1023.             border        1
  1024.             bordercolor    0 0 0 1
  1025.             cvarTest    "ui_netSource"
  1026.             showCvar 
  1027.             { 
  1028.                 "2"
  1029.             }     
  1030.  
  1031.               action 
  1032.             {
  1033.                 play "sound/misc/menus/select.wav" ; 
  1034.  
  1035.                 uiScript deleteFavorite
  1036.             }
  1037.             mouseEnter 
  1038.             { 
  1039.                 play "sound/misc/menus/hilite1.wav" ; 
  1040.                 setitemcolor delfavorite_button backcolor .12 .14 .08 1
  1041.                 setitemcolor delfavorite_button forecolor .49 .56 .27 1
  1042.             }
  1043.               mouseExit 
  1044.             { 
  1045.                 setitemcolor delfavorite_button forecolor .12 .14 .08 1
  1046.                 setitemcolor delfavorite_button backcolor 0 0 0 0
  1047.             }
  1048.         }
  1049.  
  1050.         itemDef 
  1051.         {
  1052.               name        serverinfo_button
  1053.               text        "Server Info"
  1054.             type        ITEM_TYPE_BUTTON
  1055.             style        WINDOW_STYLE_FILLED
  1056.               rect        241 265 95 20
  1057.             textfont        "hud"
  1058.             textscale        .43
  1059.             textalign    0
  1060.               textalignx    15
  1061.             textaligny    2
  1062.             forecolor    .12 .14 .08 1
  1063.             backcolor    0 0 0 0
  1064.               visible        1 
  1065.             border        1
  1066.             bordercolor    0 0 0 1
  1067.  
  1068.               action 
  1069.             {
  1070.                 play "sound/misc/menus/select.wav" ; 
  1071.  
  1072.                 open serverinfo_popmenu ;
  1073.             }
  1074.             mouseEnter 
  1075.             { 
  1076.                 play "sound/misc/menus/hilite1.wav" ; 
  1077.                 setitemcolor serverinfo_button backcolor .12 .14 .08 1
  1078.                 setitemcolor serverinfo_button forecolor .49 .56 .27 1
  1079.             }
  1080.               mouseExit 
  1081.             { 
  1082.                 setitemcolor serverinfo_button forecolor .12 .14 .08 1
  1083.                 setitemcolor serverinfo_button backcolor 0 0 0 0
  1084.             }
  1085.         }
  1086.  
  1087.         itemDef 
  1088.         {
  1089.               name        findfriend_button
  1090.               text        "Find Friend"
  1091.             type        ITEM_TYPE_BUTTON
  1092.             style        WINDOW_STYLE_FILLED
  1093.               rect        355 265 95 20
  1094.             textfont        "hud"
  1095.             textscale        .43
  1096.             textalign    0
  1097.               textalignx    12
  1098.             textaligny    2
  1099.             forecolor    .12 .14 .08 1
  1100.             backcolor    0 0 0 0
  1101.               visible        1 
  1102.             border        1
  1103.             bordercolor    0 0 0 1
  1104.  
  1105.               action 
  1106.             {
  1107.                 play "sound/misc/menus/select.wav" ; 
  1108.  
  1109.                 open findplayer_popmenu ;
  1110.             }
  1111.             mouseEnter 
  1112.             { 
  1113.                 play "sound/misc/menus/hilite1.wav" ; 
  1114.                 setitemcolor findfriend_button backcolor .12 .14 .08 1
  1115.                 setitemcolor findfriend_button forecolor .49 .56 .27 1
  1116.             }
  1117.               mouseExit 
  1118.             { 
  1119.                 setitemcolor findfriend_button forecolor .12 .14 .08 1
  1120.                 setitemcolor findfriend_button backcolor 0 0 0 0
  1121.             }
  1122.         }
  1123.     }
  1124. }
  1125.